package com.wll.mapper;

import com.wll.entity.Student;
import com.wll.mapper.impl.StudentProvider;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface StudentMapper {
    
    int deleteByPrimaryKey(Integer id);

    int insert(Student record);

    Student selectByPrimaryKey(Integer id);

    List<Student> selectAll();

    int updateByPrimaryKey(Student record);

    void batchData(@Param("list") List<Student> list);

    @InsertProvider(type = StudentProvider.class, method = "insertListSql")
    public void sqlInsert(List<Student> list);
}